package org.brisling.base.domain;

import java.util.ArrayList;
import java.util.List;
/**
 * 
 * 用于jQuery easyUI grid 数据集封装javabean对象，
 * easyUI DataGrid及TreeGrid可直接load加载封装后的数据集
 * @author : jackson wang
 * @Date   : 2015年10月8日 下午10:01:07
 * @version: 1.0
 * 
 */
public class ListDomain<T> {
	
	private String state;
	
	private String msg;
	private Long total;
	
	private List<T> rows; 
	
	public ListDomain(){
		total = 0l;
		rows = new ArrayList<T>();
		state = "success";
	}
	
	public ListDomain(String err){
		total = 0l;
		rows = new ArrayList<T>();
		state = "error";
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	public String getMsg() {
		return msg;
	}


	public void setMsg(String msg) {
		this.msg = msg;
	};
	
	

}
